# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=uacme
pkgver=295.43d1b12
pkgrel=1
pkgdesc='Defeating Windows User Account Control.'
groups=('blackarch' 'blackarch-windows')
arch=('any')
makedepends=('git')
url='https://github.com/hfiref0x/UACME'
source=("$pkgname::git+https://github.com/hfiref0x/UACME.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/windows/$pkgname/"

  cp -a Source "$pkgdir/usr/share/windows/$pkgname/"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}

